siteinformationprotection

package
v0.20241111.1164443 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/siteinformationprotection Documentation

The siteinformationprotection SDK allows for interaction with Microsoft Graph groups (API Version beta).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/siteinformationprotection"

Client Initialization

client := siteinformationprotection.NewSiteInformationProtectionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: SiteInformationProtectionClient.CreateSiteInformationProtectionDecryptBuffer

ctx := context.TODO()
id := siteinformationprotection.NewGroupIdSiteID("groupId", "siteId")

payload := siteinformationprotection.CreateSiteInformationProtectionDecryptBufferRequest{
	// ...
}


read, err := client.CreateSiteInformationProtectionDecryptBuffer(ctx, id, payload, siteinformationprotection.DefaultCreateSiteInformationProtectionDecryptBufferOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SiteInformationProtectionClient.CreateSiteInformationProtectionEncryptBuffer

ctx := context.TODO()
id := siteinformationprotection.NewGroupIdSiteID("groupId", "siteId")

payload := siteinformationprotection.CreateSiteInformationProtectionEncryptBufferRequest{
	// ...
}


read, err := client.CreateSiteInformationProtectionEncryptBuffer(ctx, id, payload, siteinformationprotection.DefaultCreateSiteInformationProtectionEncryptBufferOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SiteInformationProtectionClient.CreateSiteInformationProtectionSignDigest

ctx := context.TODO()
id := siteinformationprotection.NewGroupIdSiteID("groupId", "siteId")

payload := siteinformationprotection.CreateSiteInformationProtectionSignDigestRequest{
	// ...
}


read, err := client.CreateSiteInformationProtectionSignDigest(ctx, id, payload, siteinformationprotection.DefaultCreateSiteInformationProtectionSignDigestOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SiteInformationProtectionClient.CreateSiteInformationProtectionVerifySignature

ctx := context.TODO()
id := siteinformationprotection.NewGroupIdSiteID("groupId", "siteId")

payload := siteinformationprotection.CreateSiteInformationProtectionVerifySignatureRequest{
	// ...
}


read, err := client.CreateSiteInformationProtectionVerifySignature(ctx, id, payload, siteinformationprotection.DefaultCreateSiteInformationProtectionVerifySignatureOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SiteInformationProtectionClient.DeleteSiteInformationProtection

ctx := context.TODO()
id := siteinformationprotection.NewGroupIdSiteID("groupId", "siteId")

read, err := client.DeleteSiteInformationProtection(ctx, id, siteinformationprotection.DefaultDeleteSiteInformationProtectionOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SiteInformationProtectionClient.GetSiteInformationProtection

ctx := context.TODO()
id := siteinformationprotection.NewGroupIdSiteID("groupId", "siteId")

read, err := client.GetSiteInformationProtection(ctx, id, siteinformationprotection.DefaultGetSiteInformationProtectionOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SiteInformationProtectionClient.UpdateSiteInformationProtection

ctx := context.TODO()
id := siteinformationprotection.NewGroupIdSiteID("groupId", "siteId")

payload := siteinformationprotection.InformationProtection{
	// ...
}


read, err := client.UpdateSiteInformationProtection(ctx, id, payload, siteinformationprotection.DefaultUpdateSiteInformationProtectionOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateSiteInformationProtectionDecryptBufferOperationOptions

type CreateSiteInformationProtectionDecryptBufferOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func (CreateSiteInformationProtectionDecryptBufferOperationOptions) ToHeaders

func (CreateSiteInformationProtectionDecryptBufferOperationOptions) ToOData

func (CreateSiteInformationProtectionDecryptBufferOperationOptions) ToQuery

type CreateSiteInformationProtectionDecryptBufferOperationResponse

type CreateSiteInformationProtectionDecryptBufferOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.BufferDecryptionResult
}

type CreateSiteInformationProtectionDecryptBufferRequest

type CreateSiteInformationProtectionDecryptBufferRequest struct {
	EncryptedBuffer   *string `json:"encryptedBuffer,omitempty"`
	PublishingLicense *string `json:"publishingLicense,omitempty"`
}

type CreateSiteInformationProtectionEncryptBufferOperationOptions

type CreateSiteInformationProtectionEncryptBufferOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func (CreateSiteInformationProtectionEncryptBufferOperationOptions) ToHeaders

func (CreateSiteInformationProtectionEncryptBufferOperationOptions) ToOData

func (CreateSiteInformationProtectionEncryptBufferOperationOptions) ToQuery

type CreateSiteInformationProtectionEncryptBufferOperationResponse

type CreateSiteInformationProtectionEncryptBufferOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.BufferEncryptionResult
}

type CreateSiteInformationProtectionEncryptBufferRequest

type CreateSiteInformationProtectionEncryptBufferRequest struct {
	Buffer  *string `json:"buffer,omitempty"`
	LabelId *string `json:"labelId,omitempty"`
}

type CreateSiteInformationProtectionSignDigestOperationOptions

type CreateSiteInformationProtectionSignDigestOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func (CreateSiteInformationProtectionSignDigestOperationOptions) ToHeaders

func (CreateSiteInformationProtectionSignDigestOperationOptions) ToOData

func (CreateSiteInformationProtectionSignDigestOperationOptions) ToQuery

type CreateSiteInformationProtectionSignDigestOperationResponse

type CreateSiteInformationProtectionSignDigestOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.SigningResult
}

type CreateSiteInformationProtectionSignDigestRequest

type CreateSiteInformationProtectionSignDigestRequest struct {
	Digest *string `json:"digest,omitempty"`
}

type CreateSiteInformationProtectionVerifySignatureOperationOptions

type CreateSiteInformationProtectionVerifySignatureOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func (CreateSiteInformationProtectionVerifySignatureOperationOptions) ToHeaders

func (CreateSiteInformationProtectionVerifySignatureOperationOptions) ToOData

func (CreateSiteInformationProtectionVerifySignatureOperationOptions) ToQuery

type CreateSiteInformationProtectionVerifySignatureOperationResponse

type CreateSiteInformationProtectionVerifySignatureOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.VerificationResult
}

type CreateSiteInformationProtectionVerifySignatureRequest

type CreateSiteInformationProtectionVerifySignatureRequest struct {
	Digest       *string `json:"digest,omitempty"`
	Signature    *string `json:"signature,omitempty"`
	SigningKeyId *string `json:"signingKeyId,omitempty"`
}

type DeleteSiteInformationProtectionOperationOptions

type DeleteSiteInformationProtectionOperationOptions struct {
	IfMatch   *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultDeleteSiteInformationProtectionOperationOptions

func DefaultDeleteSiteInformationProtectionOperationOptions() DeleteSiteInformationProtectionOperationOptions

func (DeleteSiteInformationProtectionOperationOptions) ToHeaders

func (DeleteSiteInformationProtectionOperationOptions) ToOData

func (DeleteSiteInformationProtectionOperationOptions) ToQuery

type DeleteSiteInformationProtectionOperationResponse

type DeleteSiteInformationProtectionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetSiteInformationProtectionOperationOptions

type GetSiteInformationProtectionOperationOptions struct {
	Expand    *odata.Expand
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Select    *[]string
}

func DefaultGetSiteInformationProtectionOperationOptions

func DefaultGetSiteInformationProtectionOperationOptions() GetSiteInformationProtectionOperationOptions

func (GetSiteInformationProtectionOperationOptions) ToHeaders

func (GetSiteInformationProtectionOperationOptions) ToOData

func (GetSiteInformationProtectionOperationOptions) ToQuery

type GetSiteInformationProtectionOperationResponse

type GetSiteInformationProtectionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.InformationProtection
}

type SiteInformationProtectionClient

type SiteInformationProtectionClient struct {
	Client *msgraph.Client
}

func NewSiteInformationProtectionClientWithBaseURI

func NewSiteInformationProtectionClientWithBaseURI(sdkApi sdkEnv.Api) (*SiteInformationProtectionClient, error)

func (SiteInformationProtectionClient) CreateSiteInformationProtectionDecryptBuffer

CreateSiteInformationProtectionDecryptBuffer - Invoke action decryptBuffer

func (SiteInformationProtectionClient) CreateSiteInformationProtectionEncryptBuffer

CreateSiteInformationProtectionEncryptBuffer - Invoke action encryptBuffer

func (SiteInformationProtectionClient) CreateSiteInformationProtectionSignDigest

CreateSiteInformationProtectionSignDigest - Invoke action signDigest

func (SiteInformationProtectionClient) CreateSiteInformationProtectionVerifySignature

CreateSiteInformationProtectionVerifySignature - Invoke action verifySignature

func (SiteInformationProtectionClient) DeleteSiteInformationProtection

DeleteSiteInformationProtection - Delete navigation property informationProtection for groups

func (SiteInformationProtectionClient) GetSiteInformationProtection

GetSiteInformationProtection - Get informationProtection from groups

func (SiteInformationProtectionClient) UpdateSiteInformationProtection

UpdateSiteInformationProtection - Update the navigation property informationProtection in groups

type UpdateSiteInformationProtectionOperationOptions

type UpdateSiteInformationProtectionOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultUpdateSiteInformationProtectionOperationOptions

func DefaultUpdateSiteInformationProtectionOperationOptions() UpdateSiteInformationProtectionOperationOptions

func (UpdateSiteInformationProtectionOperationOptions) ToHeaders

func (UpdateSiteInformationProtectionOperationOptions) ToOData

func (UpdateSiteInformationProtectionOperationOptions) ToQuery

type UpdateSiteInformationProtectionOperationResponse

type UpdateSiteInformationProtectionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL