Cors

com.google.storage.v2.storage.Bucket.Cors
See theCors companion object
final case class Cors(origin: Seq[String], method: Seq[String], responseHeader: Seq[String], maxAgeSeconds: Int, unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[Cors]

Cross-Origin Response sharing (CORS) properties for a bucket. For more on Cloud Storage and CORS, see https://cloud.google.com/storage/docs/cross-origin. For more on CORS in general, see https://tools.ietf.org/html/rfc6454.

Value parameters

maxAgeSeconds

The value, in seconds, to return in the [https://www.w3.org/TR/cors/#access-control-max-age-response-header][Access-Control-Max-Age header] used in preflight responses.

method

The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and means "any method".

origin

The list of Origins eligible to receive CORS response headers. See [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins. Note: "*" is permitted in the list of origins, and means "any Origin".

responseHeader

The list of HTTP headers other than the [https://www.w3.org/TR/cors/#simple-response-header][simple response headers] to give permission for the user-agent to share across domains.

Attributes

Companion
object
Source
Bucket.scala
Graph
Supertypes
trait Updatable[Cors]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addAllMethod(`__vs`: Iterable[String]): Cors

Attributes

Source
Bucket.scala
def addAllOrigin(`__vs`: Iterable[String]): Cors

Attributes

Source
Bucket.scala
def addAllResponseHeader(`__vs`: Iterable[String]): Cors

Attributes

Source
Bucket.scala
def addMethod(`__vs`: String*): Cors

Attributes

Source
Bucket.scala
def addOrigin(`__vs`: String*): Cors

Attributes

Source
Bucket.scala
def addResponseHeader(`__vs`: String*): Cors

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala
def companion: Cors.type

Attributes

Source
Bucket.scala

Attributes

Source
Bucket.scala
def getField(`__field`: FieldDescriptor): PValue

Attributes

Source
Bucket.scala
def getFieldByNumber(`__fieldNumber`: Int): Any

Attributes

Source
Bucket.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source
Bucket.scala
def toProtoString: String

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns

human-readable representation of this message.

Source
Bucket.scala
def withMaxAgeSeconds(`__v`: Int): Cors

Attributes

Source
Bucket.scala
def withMethod(`__v`: Seq[String]): Cors

Attributes

Source
Bucket.scala
def withOrigin(`__v`: Seq[String]): Cors

Attributes

Source
Bucket.scala
def withResponseHeader(`__v`: Seq[String]): Cors

Attributes

Source
Bucket.scala
def withUnknownFields(`__v`: UnknownFieldSet): Cors

Attributes

Source
Bucket.scala
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Source
Bucket.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toByteString: ByteString

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
def update(ms: Lens[Cors, Cors] => () => Cors*): A

Attributes

Inherited from:
Updatable
Source
Lenses.scala
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala